<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>知识竞赛——在线考试</title>
	<meta http-equiv="content-type" content="textml; charset=utf-8" />
	<meta name="description" content="__DESCRIPTION__">
	<meta name="keywords" content="__KEYWORDS__">	<link href="__CSS__/common.css" rel="stylesheet" type="text/css" />
	<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css" />
    <link href="__CSS__/Student/answer.css" rel="Stylesheet" rev="Stylesheet" />
    <link href="__CSS__/css.css" rel="Stylesheet" rev="Stylesheet" />
    <meta http-equiv="Expires" content="0" /> 
    <meta http-equiv="Cache-Control" content="no-cache" /> 
    <meta http-equiv="Pragma" content="no-cache" /> 
    <script language="javascript" type="text/javascript">
		document.onkeydown = function() {
			var k = event.keyCode;
			if ((event.ctrlKey == true && k == 82) || (k == 116) || (event.ctrlKey == true && k == 116)) {
				alert("禁止刷新！");
				event.keyCode = 0;
				event.returnValue = false;
				event.cancelBubble = true;
			}
		}
		document.oncontextmenu = new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
		document.onselectstart = new Function("event.returnValue=false;"); //禁止选择,也就是无法复制
		function CountDown(time) {
			var str = Math.floor(time / 60) + "分" + time % 60 + "秒";
			var span = document.getElementsByTagName("b");
			for (var i = 0; i <span.length; i++) {
				span[i].innerText = str;//把下面页面中的所有的b标签中都存放倒计时
			}
			document.title = str;//标题也设置为倒计时
			time--;
			if (time >= 0) {
				setTimeout("CountDown(" + time + ")", 1000);
			}
			else {
				document.getElementById("Submit").click();
				document.getElementById("Submit").style.display = "none";
			}
		}
		history.forward();        
    </script>
	<style>
		.choice li{list-style-type : upper-alpha}
	</style>
</head>
<body>
    
    <div id="container">
		<!-- ---header部分-- start ---- -->
		<include file="./Match/Tpl/Include/header.html" />
		<!-- ---header部分--  end  ---- -->
        <div class="clear"></div>
        
		<script type="text/javascript">CountDown(2400);</script>
		<div id="position" onload="init();"> 
			<ul class="position"> 
				<li style="background:url(__IMG__/positionL.jpg) no-repeat left; width:15px;">&nbsp;</li> 
				<li style="padding-top:4px;">您的位置：<a href="__APP__/">大赛首页</a>》在线答题系统</li> 
				<li style="background:url(__IMG__/positionR.jpg) no-repeat right; float:right;">&nbsp;</li> 
			</ul> 
		</div> 
		<div id="main">
			<h3>中国互联网协会第五届全国大学生网络商务创新应用大赛(2011-2012)在线答题系统</h3>
			<form name="exampaper" method="post" action="__URL__/score" id="aspnetForm">
			<div class="list1"> 
				<p>考试时间长40分钟，还有<b>40分0秒</b></p> 
				<p>请勿刷新，否则将重新答题</p> 
				<p style="background:url(__IMG__/header1.gif) no-repeat center; font-weight:600;">在线答题第一部分：单项选择</p>
				<div class="list2"> 
					<p>一、单项选择题，满分为30分，共30题，每小题1分，只能从题目选项中选出一个答案。</p>
					
					
<volist name="SingleChoice" id="SingleChoice" key="k">
	<dl class="list3">	
		<dt>{$k}、{$SingleChoice.Title}<input type="hidden" name="1{$k}" value="{$SingleChoice.Id}" /></dt>
			<dd>
				<ul class="choice" border="0">
				<table>
						<php>foreach($itmes[$k-1] as $key=> $v){</php>
					<tr>
						<td>
							<input id="1{$k}{$key}" type="radio" name="r1{$k}" value="{$key}" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</td>
						<td>		
							<li>
								<label for="1{$k}{$key}">
								<php>echo $v.'<br>';</php>
								</label>	
							</li>
						</td>
					</tr>
						<php>}</php>	
				</table>
				</ul>
			</dd>
	</dl>
</volist>	
				</div> 
			</div> 
			<div class="list1"> 
				<p>考试时间长40分钟，还有<b>40分0秒</b></p> 
				<p>请勿刷新，否则将重新答题</p> 
				<p style="background:url(__IMG__/header1.gif) no-repeat center; font-weight:600;">在线答题第二部分：多项选择</p> 
				<div class="list2"> 
					<p>二、多项选择题，满分为40分，共20题，每小题2分，可以从题目的选项中选择多个答案。</p> 

<volist name="MultipleChoice" id="MultipleChoice" key="k">
	<dl class="list3">	
		<dt>{$k}、{$MultipleChoice.Title}<input type="hidden" name="2{$k}" value="{$MultipleChoice.Id}" /></dt>
			<dd>
				<ul class="choice" border="0">
				<table>
						<php>foreach($Mitmes[$k-1] as $key=> $v){</php>
					<tr>
						<td>
							<input id="2{$k}{$key}" type="checkbox" name="r2{$k}[{$key}]" value="{$key|pow=2,###}" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</td>
						<td>		
							<li>
								<label for="2{$k}{$key}">
								<php>echo $v.'<br>';</php>
								</label>	
							</li>
						</td>
					</tr>
						<php>}</php>	
				</table>
				</ul>
			</dd>
	</dl>
</volist>	
				</div> 
			</div> 
			
			
			
						<div class="list1"> 
				<p>考试时间长40分钟，还有<b>40分0秒</b></p> 
				<p>请勿刷新，否则将重新答题</p> 
				<p style="background:url(__IMG__/header1.gif) no-repeat center; font-weight:600;">在线答题第三部分：判断题</p> 
				<div class="list2"> 
					<p>三、判断题，满分为20分，共20题，每小题1分，判断陈述是否正确。</p> 
<volist name="Judgments" id="Judgments" key="k">
	<dl class="list3">	
		<dt>{$k}、{$Judgments.Title}<input type="hidden" name="3{$k}" value="{$Judgments.Id}" /></dt>
		<dd>
			<ul class="choice" border="0">
				<table>
					<tr>
						<td>
							<input id="3{$k}0" type="radio" name="r3{$k}" value="1" />
							<label for="3{$k}0"> 对</label>
						</td>
					</tr>
					<tr>
						<td>
							<input id="3{$k}1" type="radio" name="r3{$k}" value="0" />
							<label for="3{$k}1"> 错</label>
						</td>
					</tr>
				</table>
			</ul>
		</dd>
	</dl>
</volist>	
		
				</div> 
			</div> 
			
			
			
			
			
			<div style="padding:15px 0 15px 0;float:left;"><p  style="padding-left:400px;">
				<input type="submit" name="Submit" value="提交" onclick="document.body.removeAttribute(&quot;onbeforeunload&quot;);document.getElementById(&quot;Submit&quot;).style.display = &quot;none&quot;;" id="Submit" style="width:200px; height:30px;" />
			</p></div>
		</div>
		<script type="text/javascript">
			document.body.setAttribute("onbeforeunload", "return '刷新或关闭页面将可能导致您这次测试结果为0分！\\n您确定要刷新或关闭吗？';");
		</script>

        <div class="clear"></div>
		<!-- ---footer部分-- start ---- -->
		<include file="./Match/Tpl/Include/footer.html" />
		<!-- ---footer部分--  end  ---- -->
    </div>
</form>
</body>
</html>
